//
//  TBAuthTip.swift
//  LeGou
//
//  Created by 刘亿前 on 2022/9/21.
//

import UIKit

class TBAuthTip: XMBaseView {

    @IBOutlet weak var nextBtn: UIButton!
    var nextBlock: (()->())?
    
    public class func show(_ click: (()->())?) {
        let vc = ZMUtil.loadNibViewFullScreen(nibName: TBAuthTip.self)
        vc.nextBlock = click
        APPWindow?.addSubview(vc)
    }
    
    @IBAction func nextClick(_ sender: UIButton) {
        self.removeFromSuperview()
        if let block = nextBlock {
            block()
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
    }
}
